{
  "properties" : { },
  "id" : "d40333dbde3843ecb9ed4da52a24aab4",
  "script" : null,
  "groupId" : "97f65e4b68e1427f857047c67d7e3f42",
  "name" : "修改告警对象",
  "createTime" : 1727070895644,
  "updateTime" : 1724835374109,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "update",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\n    \"id\":\"7055\",\n    \"code\":\"HHHH\",\n    \"enable\":0,\n    \"targetName\":\"测试Magic\",\n    \"targetDescr\":\"测试Magic\",\n    \"targetType\":2\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": 1\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================

return db.update("""
    update alarm_target set code = #{body.code}, enable = #{body.enable},target_descr = #{body.targetDescr},
    target_name = #{body.targetName},target_type = #{body.targetType}
    where id = #{body.id}
""")